<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let tn = document.createTextNode("abc");

      // 替换节点
      tn.replaceChild(newnode, oldnode);
      tn.replaceData(offset, count, data);

      // 可以调用，但是不生效，好像是只给element用
      tn.replaceWith(node | string);
      // 只能替换字符串
      textnode.replaceData(0, textnode.length, msg + count);
    </script>
  </body>
</html>
l
